#!/bin/sh

#!/bin/sh

# Purpose           : Shell script is used to monitor files changes done in current directory. It needs inotifytools to be installed
# Date/Time         : Tue Mar 20 11:29:42 IST 2012
# Modification Date : Fri Mar 23 12:14:13 IST 2012

FORMAT=$(echo -e "\033[1;33m%w%f\033[0m written")
"$@"
while inotifywait -qre close_write --format "$FORMAT" .
do
    "$@"
done

